/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package DAO;

/**
 *
 * @author admin-pc
 */
public class DAOFactory {
    private static DAOFactory daoFac;
    static{
        daoFac=new DAOFactory();
    }
    private DAOFactory(){}
    public DAOFactory getInstance(){
        return daoFac;
    }
    public BookDAO getBookDAO(){
        return new BookDAOImpl();
    }
    public AuthorDAO getAuthorDAO(){
        return new AuthorDAOImpl();
        
    }
    
    
    
}
